package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.TbClazz;
import com.bwie.service.TbClazzService;
import com.bwie.mapper.TbClazzMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lenovo
 * @description 针对表【tb_clazz(班级表)】的数据库操作Service实现
 * @createDate 2025-06-21 11:00:13
 */
@Service
public class TbClazzServiceImpl extends ServiceImpl<TbClazzMapper, TbClazz>
        implements TbClazzService {

    @Autowired
    TbClazzMapper tbClazzMapper;

    @Override
    public R getClazz() {

        List<TbClazz> tbClazzList = tbClazzMapper.selectList(null);

        return R.OK(tbClazzList);
    }
}




